projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10917c4
)
board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL
author
Abel Vesa
<
[email protected]
>
Fri, 1 Feb 2019 16:40:13 +0000
(16:40 +0000)
committer
Stefano Babic
<
[email protected]
>
Fri, 15 Feb 2019 21:01:15 +0000
(22:01 +0100)
This matches one of the following three boards (or fails):
- imx6q-sabreauto
- imx6qp-sabreauto
- imx6dl-sabreauto
Signed-off-by: Abel Vesa <
[email protected]
>
Reviewed-by: Peng Fan <
[email protected]
>
Reviewed-by: Fabio Estevam <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
board/freescale/mx6sabreauto/mx6sabreauto.c
patch
|
blob
|
history
diff --git
a/board/freescale/mx6sabreauto/mx6sabreauto.c
b/board/freescale/mx6sabreauto/mx6sabreauto.c
index c1bef8507c27e8ab5a3133d77150ef6dbe966797..c8f126377ccc20dd5caf46427c917ba7e2150c97 100644
(file)
--- a/
board/freescale/mx6sabreauto/mx6sabreauto.c
+++ b/
board/freescale/mx6sabreauto/mx6sabreauto.c
@@
-1097,3
+1097,21
@@
void board_init_f(ulong dummy)
board_init_r(NULL, 0);
}
#endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+ if (is_mx6dq()) {
+ if (!strcmp(name, "imx6q-sabreauto"))
+ return 0;
+ } else if (is_mx6dqp()) {
+ if (!strcmp(name, "imx6qp-sabreauto"))
+ return 0;
+ } else if (is_mx6dl()) {
+ if (!strcmp(name, "imx6dl-sabreauto"))
+ return 0;
+ }
+
+ return -1;
+}
+#endif